package com.mespad;

import android.test.AndroidTestCase;
import android.util.Log;

public class MespadManagerTest extends AndroidTestCase {

	public void testopenSerialPort(){
		
		
		MespadManager manager=new MespadManager();
		String result;
		//manager.native_closeSerialPort(41);
	    int s=manager.native_openSerialPort("ttyHS3");
		char key[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
		//Log.i("XX", "------------mes="+s);
		manager.native_embedKey(key);
		
		result=manager.native_searchCard();
		//result=manager.native_readBlock(2, 2);
 		Log.i("XX", "------------result="+result);
 	//	manager.native_scanQRcode();
		manager.native_closeSerialPort();
		
	}
}
